package com.qf.lanzhou.shop.api.controller;

import com.qf.lanzhou.shop.api.service.ShowZenithGoodService;
import com.qf.lanzhou.shop.pojo.entity.Goods;
import com.qf.lanzhou.shop.pojo.vo.BaseRespVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author jian   显示折扣价商品
 * @Date 2021/1/13 9:59
 * @JDK 1.8
 * @Version 1.0
 */
@Api("展示折扣商品功能")
@Controller
public class ShowZenithGoodController extends BaseController{

    @Autowired
    private ShowZenithGoodService showZenithGoodService;

    @ApiOperation("展示折扣商品功能")
    @GetMapping(value = "/showzenith")
    @ResponseBody
    public BaseRespVO showzenith(){
        System.out.println("jjj");
       List<Goods> list=showZenithGoodService.showzenith();
        System.out.println("hhh");
       return convertSuccessResult(list);
    }
}
